{extend name="$_tpl_public_layout_ace"/}


{block name="breadcrumb"}
<ul class="breadcrumb">
	<li><i class="fa fa-home home-icon"></i><a href="{:url('manage/index/index')}">{:config('web_site_title')}</a></li>
	<li><a href="{:url('seatsel/manage/index')}">{:config('proj_name')}</a></li>
	<li><a href="{:url('seatsel_manage/product/index')}">演出管理</a></li>
	<li><a href="{:url('seatsel_manage/spec/index', ['pid'=>$pid])}">{$sideName}</a></li>
</ul>
{/block}


{block name="pageheader"}
<h1>
	{$sideName}
</h1>
{/block}


{block name="content"}
<div class="mb10">
	<a href="{:url('seatsel_manage/spec/add', ['pid'=>$pid])}" class="btn btn-primary btn-sm"><i class="fa fa-pencil align-top bigger-125"></i> 添加</a>
</div>

<form method="post" action="{:url('seatsel_manage/slide/listorders')}" class="form-horizontal J_ajaxForm">
	<table class="table table-striped table-bordered table-hover dataTables-table">
		<thead>
			<tr>
				<th width="80">排序</th>
				<th>场次名称</th>
				<th>使用影厅</th>
				<th width="80">库存</th>
				<th width="80">销售</th>
				<th width="80">初始化</th>
				<th width="160">操作</th>
			</tr>
		</thead>
		<tbody>
			{volist name="list" id="vo"}
			<tr>
				<td><input type="text" name="vieworders[{$vo['id']}]" value="{$vo['vieworder']}" class="form-control zz-length1"></td>
				<td>{$vo['name']}</td>
				<td>{$hallList[$vo['hid']]['name']}</td>
				<td>{$vo['stock_num']}</td>
				<td>{$vo['sale_num']}</td>
				<td>
					<a href="{:url('seatsel_manage/spec/initSeat', array('specId'=>$vo['id']))}" class="btn btn-success btn-xs J_layerConfirm" data-tip="确认初始化座位吗？">初始化座位</a>
					<div class="mt5">
						<a href="{:url('seatsel_manage/spec/clearSeat', array('specId'=>$vo['id']))}" class="btn btn-danger btn-xs J_layerConfirm" data-tip="确认清空座位吗？">清空座位</a>
					</div>
				</td>
				<td>
					<div>
						<a href="{:url('seatsel_manage/spec/add', ['id'=>$vo['id']])}" class="btn btn-primary btn-xs">修改</a>
						<a href="{:url('seatsel_manage/spec/doDelete', ['id'=>$vo['id']])}" class="btn btn-danger btn-xs J_layerConfirm" data-tip="确认删除吗？">删除</a>
					</div>
					<div class="mt5">
						<a href="{:url('seatsel_manage/spec/stockEdit', ['id'=>$vo['id']])}" class="btn btn-info btn-xs J_layerPcDialog" data-tip="修改库存">修改库存</a>
						<a href="{:url('seatsel_manage/seat/index', array('specId'=>$vo['id']))}" class="btn btn-success btn-xs">查看座位</a>
					</div>
					<div class="mt5">
						<a href="{:url('seatsel_manage/spec/setSeat', array('specId'=>$vo['id']))}" class="btn btn-info btn-xs">设置座位价格</a>
					</div>
				</td>
			</tr>
			{/volist}
		</tbody>
	</table>
	<div class="dataTables-controll">
		<button type="submit" class="btn btn-success btn-sm J_ajaxSubmit">提交排序</button>
	</div>
</form>
<div class="dataTables-pages">{$pageShow}</div>
{/block}